<template>
    <div class="container">
        <Category title="美食">
            <!-- 缩写 -->
            <template #default>
                <div>
                    aasaa
                </div>
            </template>
            <!-- 缩写作用域插槽 -->
            <template #footer="slotProps">
                <ul>
                    <li v-for="(g, index) in slotProps.games" :key="index">
                        {{ g }}
                    </li>
                </ul>
            </template>
        </Category>
    </div>
</template>

<script>
import Category from "@/components/Category";
export default {
    name: "App",
    components: {
        Category,
    },
    data() {
        return {};
    },
};
</script>
<style lang="css" scoped>
.container {
    display: flex;
    justify-content: space-around;
}
video {
    width: 100%;
}
img {
    width: 100%;
}
</style>



